const { request } = require("../utils/request.js")
const { testUrl, loadDataUrl,goodsDetailUrl,getLuckUrl } = require("../api/base")

async function test(config={}){
	return await request.get(testUrl, {}, config)
}

const loadData = async () => {
	return await request.get(loadDataUrl)
}

const getGoodsDetail = async (id) => {
	return await request.get(goodsDetailUrl, {id})
}

const getLuck = async (id) => {
	return await request.get(getLuckUrl, {})
}


module.exports =  {test, loadData, getGoodsDetail, getLuck}